Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface scan - not working #151

Closed
AlexTimofte opened this issue Aug 20, 2020 · 11 comments
Closed

Surface scan - not working #151

AlexTimofte opened this issue Aug 20, 2020 · 11 comments
Labels

Comments

@AlexTimofte
Copy link

Hello Svenhb,

I'm trying to get a correct height map, but without results.
For example I placed a coin on a PCB (the coin has a thickness of 2 mm) I did the settings (area, depth, save height, speed) and I start to generate height map from surface scan. The result is a wrong map, I think that is not about offset or cut off.
Maybe I skipped something in setup. The GRBL-Plotter version that I'm using is version 1.5.0.5.
Could you help me?

p1
p2

Best regards,
Alexandru

@svenhb
Copy link
Owner

svenhb commented Aug 20, 2020

What is wrong with the map? What do you expect?
For me, the map looks right, but the offset is perhaps wrong - I assume you don't want that Z-depth.
I didn't try this option for a long time, I need to check by myself how to use it.
Did you check this manual: https://github.com/svenhb/GRBL-Plotter/wiki/surface-scan ?

I woud go to this position (because it shows a depth of 0) and zero the z axis on surface, then apply height-map (with max. value set to 0.0) to the G-Code...
image

@AlexTimofte
Copy link
Author

Hello Svenhb,

Thank you for your answer.
I was expecting to see a clear contour, even if there will be an offset.
Another thing is that, if I scan the surface several times, in the same conditions (position, area, settings, starting from 0 Z), each time I get a completely different map comparing with previous one.
p3

In "Probing" view I observed that the z position was read right, but in surface scan windows, the color and position seems to be not right placed.
p4

I will double check the manual.

Regards,
Alexandru

@svenhb
Copy link
Owner

svenhb commented Aug 21, 2020

To see the relief of the coin you need a smaller raster (grid-size), in my example I used 0.2 mm. Your first screenshot shows 5 mm.

The message in the main window shows the result of grbl in machine coordinates. But the scan window recalculates it to work coordinates.

Without pressing "set max. value = 0.0" the result picture should show colors from minimum depth to maximum depth - usually not starting at 0.000.

Perhaps the old scan was still in the memory and not cleared - overlapping (with min. max. values) the new scan?

I will check this evening.

@svenhb
Copy link
Owner

svenhb commented Aug 21, 2020

@AlexTimofte
Copy link
Author

Hi Svenhb,

I did another one test after analyzing your information. Please take a look to the attached video.

SurfaceScan.zip

Even if the raster is 5mm, I'm still expecting to see a clear height difference, between table and coin, like I figured in below picture (I updated by hand the *.map file with corresponding z value from each xy position seen in "Probing" view, the yellow zone ).

Uploading Capture.PNG…

@AlexTimofte
Copy link
Author

Capture

@svenhb
Copy link
Owner

svenhb commented Aug 23, 2020

In order to obtain a fine contour, the scanning must be finer.
You need a smaller raster (grid-size), your first screenshot shows 5 mm = 5 x 7 pixel.
image

In my example I used 0.2 mm - resulting to 51 x 51 pixel
image

@AlexTimofte
Copy link
Author

Hi Svenhb,

For sure, I'm agree with you, for a fine contour, the scanning must be finer, my complaint is related to resulted height in the height map.
The resulted map does not reflect the reality (even if will be shifted or re scaled).
My example can be seen as a worst case probe where I have a kind of step in the work plan.
I also tried with an inclined plan, but the results were not as expected.
img

@svenhb
Copy link
Owner

svenhb commented Aug 24, 2020

But probing works like this: starting from zero it is moving down to negative values until contact.
The delta shows the thickness of your coin (-1.9 - (-3.9)) = 2
image

@AlexTimofte
Copy link
Author

Ok, this aspect is already understood. and that's what I expect to happen.

img

@svenhb
Copy link
Owner

svenhb commented Aug 24, 2020

Did you watch the surface scan, when scanning the coin? Perhaps you scanned on wrong coordinates - without coin.
You need to zero X and Y at the lower-left edge of the scanning area...
I tried the surface scan at the weekend, and it was ok.

@svenhb svenhb closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants